<html>
<head>	
<title>Clip It <?php if (isset($_REQUEST['file'])) echo '- '.stripcslashes(html_entity_decode(end(explode('\\',$_REQUEST['file'])))); ?></title>
<h2>Clip It <?php if (isset($_REQUEST['file'])) echo '- '.stripcslashes(html_entity_decode(end(explode('\\',$_REQUEST['file'])))); ?></h2>
<link rel="stylesheet" type="text/css" href="style.css" media="screen">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="PageInfo.js"></script>
<script type="text/javascript">
	var infile="<?php echo $_REQUEST['file']; ?>";
	var infileext="<?php echo substr($_REQUEST['file'],-3); ?>";
	var outfilename="<?php echo substr($_REQUEST['file'],0,-4); ?>";
	// alert(infile  +"\n"+ infileext +"\n"+ outfilename);
</script>
<script type="text/javascript" src="script.js"></script>
<head>
<body onload="javascript:subcontrols('disable')">
<!--<div id="fileopen"></div><input type="button" name="load" id="load" onclick="load()" value="Open Media File"/>-->
<table id="main"><tr><td valign=top id="preview">
<div id="container"><embed name="media" target="<?php echo stripcslashes(html_entity_decode($_REQUEST['file'])); ?>" width="100%" height="100%" type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" autoplay="false" id="media"></embed></div>
<div id="pos" onclick="javascript:mouseseek()"><div id="progress"></div></div>
<div id="controls">
<input type="button" name="playpause" id="playpause" onclick="playpause()" value="Play/Pause" />
<input type="button" name="stop" id="stop" onclick="javascript:playerstop()" value="Stop" />
<input type="button" name="mark" id="mark" onclick="javascript:mark()" value="Mark In"/>
<input type="button" name="set" id="set" onclick="javascript:set()" value="Split Here"/>
<input type="button" name="gototime" id="gototime" onclick="javascript:seek('time')" value="Goto (Time)" />
<div id="timestamp"><span id="time">00:00:00</span> / <span id="len">00:00:00</span></div>
<!--<input type="button" name="gotoperc" id="gotoperc" onclick="javascript:seek('perc')" value="Goto (Percentage)" />-->
</div>
</td><td width=50% valign=top>
<form id="timeform" action="generate.php" method="post"><ol id="timelist"></ol>
<textarea name="ff" id="ff"></textarea>
<input type="hidden" name="infile" value="<?php echo stripcslashes(html_entity_decode($_REQUEST['file'])); ?>" />
<input type="hidden" name="infileext" value="<?php echo stripcslashes(html_entity_decode(substr($_REQUEST['file'],-3))); ?>" />
<input type="hidden" name="outfilename" value="<?php echo stripcslashes(html_entity_decode(substr($_REQUEST['file'],0,-4))); ?>" />
<input type="submit" name="submit" id="splitter" value="Generate Splitter"/></form></td>
</body>
</html>